package com.woniu.pay.service;

import com.alipay.api.AlipayApiException;
import com.alipay.api.response.AlipayTradeQueryResponse;
import com.alipay.api.response.AlipayTradeRefundResponse;
import com.woniu.pay.entity.PayInfo;
import com.woniu.pay.entity.RefundInfo;

public interface AliPayService {

    String pay(PayInfo payInfo) throws AlipayApiException;

    AlipayTradeQueryResponse queryStatusByOutTradeNo(String outTradeNo);

    AlipayTradeRefundResponse refund(RefundInfo refundInfo);
}
